package util;

/**
 * 符号类，用来表示用户输入策略中的每一个符号
 */
public class Symbol {
    //符号
    private char sym;
    //优先级
    private int priority;

    /**
     * constructor
     * @param sym 符号
     * @param priority 优先级
     */
    public Symbol(char sym, int priority) {
        this.sym = sym;
        this.priority = priority;
    }

    public Symbol() {
    }

    public char getSym() {
        return sym;
    }

    public void setSym(char sym) {
        this.sym = sym;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }
}
